package com.cjy.common.utils.tag;

import com.cjy.common.utils.ApplicationUtils;
/**
 * 
 * IF TAG <xxx:if authId="authId.."></xxx:if>
 * * the authKey is required
 * @author: jay.zhoujingjie
 *          Date: 13-12-14
 *          Time: 下午2:02
 * 
 */
public class IfTag extends org.apache.struts2.views.jsp.IfTag
{
	//权限key
	private String	authKey;
	public String getAuthKey()
	{
		return authKey;
	}

	@Override
	protected void populateParams()
	{
		setTest(String.valueOf(ApplicationUtils.isAllowAsThisAction(authKey)));
		super.populateParams();
	}

	public void setAuthKey(String authKey)
	{
		this.authKey = authKey;
	}
}
